Status
What's included
copyright-update
is a super simple component. Within the download you'll find the following directories and files:
copyright-update
└── src/
└── index.js
Usage
Install the package.
npm i copyright-update
In the example below, we are going to import
the copyright-update
component into a Footer.
import React, { Component } from 'react';
class CopyrightUpdate extends Component {
render() {
return (
© {new Date().getFullYear()}
);
}
}
export default CopyrightUpdate;
Style the component using the CSS classname .copyright-update
.
.copyright-update {
display: inline-block;
margin-left: .5rem;
}
By contributing your code, you agree to license your contribution under the
MIT License.